package com.lzy.permission.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author pwz
 *
 */
@Entity
@Table(name="tb_resource")
public class Resource {
	
	@Id
	@Column(length=32)
	private String id ;
	
	@Column(length=64)
	private String key ;
	
	@Column(length=64)
	private String name ;
	
	@Column(length=255)
	private String remark ;

	public Resource() {
	}
	
	public Resource(String id, String key, String name, String remark) {
		this.id = id;
		this.key = key;
		this.name = name;
		this.remark = remark;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	
}
